package com.tarena.lbs.basic.web;

import com.tarena.lbs.basic.web.source.output.BasicOutputSource;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;

//单纯的一个springboot启动类
//1.核心注解[springboot自动配置加载逻辑原理]
//2.springBootApplication注解 属性scanBasePackages 默认当前类的所在包
@SpringBootApplication(scanBasePackages = {
        "com.tarena.lbs.basic.web","com.tarena.lbs.common.security"
})
@MapperScan("com.tarena.lbs.basic.web.mapper")
@EnableDubbo
@EnableBinding(value={BasicOutputSource.class})
public class BasicWeb {
    //2.main方法[springboot启动流程原理]
    public static void main(String[] args){
        SpringApplication.run(BasicWeb.class,args);
    }
}